module.exports = app => {
  require('./router/home')(app);


  app.router.resources('topics', '/api/topics', app.controller.topics);

  app.router.post('/api/v2/login', app.controller.users.login);
  app.router.post('/api/v2/cookieOfLogin', app.controller.users.cookieOfLogin);


  app.router.post('/api/v2/apitest/createOrUpdate', app.controller.test.create);


  // app.io.of('/').route('server', app.io.controller.chat.server);

  // app.io.route('disconnect', app.io.controller.chat.disconnect);

};
